from redis import StrictRedis

class Config():
    REDIS_HOST ='192.168.126.139'
    REDIS_PORT = 6379
    DEBUG = None
    SESSION_TYPE = 'redis'
    SESSION_REDIS = StrictRedis(host=REDIS_HOST, port=REDIS_PORT)
    SESSION_USE_SINGER = True
    PERMANENT_SESSION_LIFETIME = 86400
    SECRET_KEY = 'rtyjukgh902395849230sdvm'
    SQLALCHEMY_DATABASE_URI = 'mysql://root:mysql@localhost/dbProject'
    SQLALCHEMY_TRACK_MODIFICATIONS = True

class DevelopmentConfig(Config):
    DEBUG = True

class ProductionConfig(Config):
    DEBUG = False

dict_config ={
    'develop':DevelopmentConfig,
    'product':ProductionConfig
}